<template>
    <div class="test">
      <br/>
      子组件传来的值 : {{message}}
      <button @click="addPri">add</button>
    </div>
</template>

<script>
export default {
    // ...
    data() {
        return {
             message: this.$store.getters.getQuery
        }
    },
    methods: {
      addPri(){
        // this.$store.commit('increment',100)
        this.$store.commit('refreshQuery','test')
        this.message = this.$store.getters.getQuery
      }
    }
}
</script>
